//
//  NavBar.h
//  PowerStationCheck
//
//  Created by 孙锐 on 2017/12/19.
//  Copyright © 2017年 孙锐. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NavBar : UIView

//背景为图片的样式
-(void)setBackgroundImage;
//背景为纯色的样式
-(void)setNavBackColor;
//设置导航栏标题
-(void)setNavTitle:(NSString *)title;
//设置返回按钮事件
-(void)setBackBtnWithBlock:(void(^)(void))back;
//重新设置标题
-(void)resetTitlte:(NSString *)title;
//设置渐变色
-(void)setColor:(UIColor *)beginColor endColor:(UIColor *)endColor;
//设置按钮大小和导航栏字体
-(void)setButtonSize:(CGSize)size andTitleFont:(CGFloat)sizes;
@end
